/**
 * 获取配置数据源
 * @param url 要查询的url
 **/
export function getSourceData (data, ...item) {
  try {
    let arr = []
    let target = data
    item.forEach(info => {
      arr = arr.concat(info.split('.'))
    })
    arr.forEach(info => {
      target = target[info]
    })
    return target
  } catch (e) {
    console.log(e)
  }
}
